package reflection.entity;

/**
 * @author liweimin
 * @date 2021/4/12 14:24
 * @description 父类
 * @since
 */
public class SuperClass {
    public static int m = 100;
    public static final String HELLOWORLD = "hello world!";
    public static final String HELLOWORLD1 = new String("hello world! 1");

    public static final User user =new User();

    static {
        user.setUserId("12");
        System.out.println("调用父类静态代码块");
    }

    public static void main(String[] args) throws ClassNotFoundException {
        Class.forName("reflection.entity.SuperClass");
        System.out.println("a");
        System.out.println(SubClass.HELLOWORLD1);
        System.out.println(SuperClass.user);
    }
}
